package com.forum.post.client;

import com.forum.post.dto.AuditRequestDTO;
import com.forum.post.dto.AuditResultDTO;
import com.forum.post.dto.AuditFeedbackDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "auto-audit-service", url = "${auto-audit.service-url}", fallbackFactory = AutoAuditClientFallbackFactory.class)
public interface AutoAuditClient {
    
    @PostMapping("/api/audit")
    AuditResultDTO auditContent(@RequestBody AuditRequestDTO request);
    
    @PostMapping("/api/feedback")
    void submitFeedback(@RequestBody AuditFeedbackDTO feedback);
} 